/*reg.html*/
function textMsg(type){
	if(type == "onfocus"){
		$('#truename').attr("class","text onfocus");
		$('#truename_msg').html("<span class='import'>请输入您的姓名！</span>");
	}else{
		if($('#truename').val() == ""){
			$('#truename').attr("class","text onblur");
			$('#truename_msg').html("<span class='empty'>姓名不能为空！</span>");
		}else{
			$('#truename').attr("class","text ok");
			$('#truename_msg').html("<span class='fine'></span>");
		}
		
	}
}

function textCode(type){
	if(type == "onfocus"){
		$('#truecode').attr("class","text onfocus");
		$('#truecode_msg').html("<span class='import'>请输入登录密码！</span>");
	}else{
		if($('#truecode').val() == ""){
			$('#truecode').attr("class","text onblur");
			$('#truecode_msg').html("<span class='empty'>密码不能为空！</span>");
		}else{
			$('#truecode').attr("class","text ok");
			$('#truecode_msg').html("<span class='fine'></span>");
		}
		
	}
}

function textCodeo(type){
	if(type == "onfocus"){
		$('#checkcode').attr("class","text onfocus");
		$('#checkcode_msg').html("<span class='import'>请再次输入密码！</span>");
	}else{
		if($('#checkcode').val() == ""){
			$('#checkcode').attr("class","text onblur");
			$('#checkcode_msg').html("<span class='empty'>两次输入的密码不一致！</span>");
		}else{
			$('#checkcode').attr("class","text ok");
			$('#checkcode_msg').html("<span class='fine'></span>");
		}
		
	}
}

function textCred(type){
	if(type == "onfocus"){
		$('#crednumber').attr("class","text1 onfocus");
		$('#crednumber_msg').html("<span class='import'>重要凭证，请准确输入！</span>");
	}else{
		if($('#crednumber').val() == ""){
			$('#crednumber').attr("class","text1 onblur");
			$('#crednumber_msg').html("<span class='empty'>证件号码不能为空！</span>");
		}else{
			if($('#crednumber').val() == "4405"){
				$('#crednumber').attr("class","text1 onblur");
				$('#crednumber_msg').html("<span class='empty'>该证件号码已被使用，您可以重新输入，或点！ <a href=''>找回密码</a></span>");
			}else{
			$('#crednumber').attr("class","text1 ok");
			$('#crednumber_msg').html("<span class='fine'></span>");
			}
		}	
	}
}

/*login.html*/
function textWord(type){
	if(type == "onfocus"){
		$('#password').attr("class","text onfocus");
		$('#password_msg').html("");
	}else{
		if($('#password').val() == ""){
			$('#password').attr("class","text onblur");
			$('#password_msg').html("<span class='empty'>密码不能为空！</span>");
		}else{
			$('#password').attr("class","text ok");
			$('#password_msg').html("<span class='fine'></span>");
		}
		
	}
}

function textCodet(type){
	if(type == "onfocus"){
		$('#authcode').attr("class","text1 onfocus");
		$('#authcode_msg').html("<span class='import'>请输入验证码！</span>");
	}else{
		if($('#authcode').val() == ""){
			$('#authcode').attr("class","text1 onblur");
			$('#authcode_msg').html("<span class='empty'>验证码不能为空！</span>");
		}else{
			$('#authcode').attr("class","text1 ok");
			$('#authcode_msg').html("<span class='fine'></span>");
		}
		
	}
}